package com.example.model.ReqModel;

import com.example.annotation.NotBlankPattern;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author zhaiyue
 * @date 2021/11/16
 */
@Data
public class BasePageReq {
    @NotNull(message = "com_page_empty")
    private Integer page;

    @NotNull(message = "com_page_empty")
    private Integer pageNum;

    @NotBlankPattern(regexp = "^\\w+$", message = "request_param_error")
    private String orderKey;

    @NotBlankPattern(regexp = "^\\w+$", message = "request_param_error")
    private String orderModel;
}
